package com.bocai.yuweiwangluo.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by admin on 2016/1/20.
 */
public class SharePrefencesUtil {

    public static String getUser_id(Context context){
        SharedPreferences sharedPreferences=context.getSharedPreferences("user",Context.MODE_PRIVATE);
        String user_id=sharedPreferences.getString("user_id","");
        return user_id;
    }
    public static String getIsRememberPsd(Context context)
    {SharedPreferences sharedPreferences=context.getSharedPreferences("user",Context.MODE_PRIVATE);
        String isrememberpsd=sharedPreferences.getString("isremember",false+"");
        return isrememberpsd;

    }
    public static String getPsd(Context context)
    {SharedPreferences sharedPreferences=context.getSharedPreferences("user",Context.MODE_PRIVATE);
        String password=sharedPreferences.getString("password","");
        return password;

    }
    public static String gettel(Context context)
    {SharedPreferences sharedPreferences=context.getSharedPreferences("user",Context.MODE_PRIVATE);
        String tel=sharedPreferences.getString("user_name","");
        return tel;

    }
}
